<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \frontend\models\SignupForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;

$this->title = '注册';
?>
<link rel="stylesheet" type="text/css" href="../css/dlzc.css" />
<style>
body{height:100%;background:#ffffff;overflow:hidden;}
canvas{z-index:-1;position:absolute;}
</style>
<script src="../js/jquery.js"></script>
<script src="../js/verificationNumbers.js" ></script>
<script src="../js/Particleground.js" ></script>
<script>
$(document).ready(function() {
  //粒子背景特效
  $('body').particleground({
    dotColor: '#5cbdaa',
    lineColor: '#5cbdaa'
  });
  //验证码 
  createCode();
  //测试提交，对接程序删除即可
  $(".submit_btn").click(function(){
	  location.href="javascrpt:;"/*tpa=http://***index.html*/;
	  });
});
</script>
<body>
<dl class="admin_login">
 <dt>
  <strong>注册</strong>
  <em>registered</em>
 </dt>
    <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
         <dd class="user_icon">
          <input type="text" name="SignupForm[username]" placeholder="账号" class="login_txtbx"/>
         </dd>
        <dd class="user_icon">
            <input type="text" name="SignupForm[email]" placeholder="邮箱" class="login_txtbx"/>
        </dd>
         <dd class="pwd_icon">
          <input type="password" name="SignupForm[password]" placeholder="密码" class="login_txtbx"/>
         </dd>
<!--         <dd class="val_icon">-->
<!--          <div class="checkcode">-->
<!--            <input type="text" id="J_codetext" placeholder="验证码" maxlength="4" class="login_txtbx">-->
<!--            <canvas class="J_codeimg" id="myCanvas" onclick="createCode()">对不起，您的浏览器不支持canvas，请下载最新版浏览器!</canvas>-->
<!--          </div>-->
<!--          <input type="button" value="验证码核验" class="ver_btn" onClick="validate();">-->
<!--         </dd>-->
         <dd>
          <input type="submit" value="点击注册" class="submit_btn "/>
         </dd>


</dl>
</body>

<!--<div class="site-signup">
    <h1><?= Html::encode($this->title) ?></h1>

    <div class="row">
        <div class="col-lg-5">
            <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>

                <?= $form->field($model, 'username') ?>

                <?= $form->field($model, 'email') ?>

                <?= $form->field($model, 'password')->passwordInput() ?>

                <div class="form-group">
                    <?= Html::submitButton('注册', ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
                </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>-->
